﻿using System.Collections;
using System.Collections.Generic;
using System.Linq;
using GestionCompte.Enums;

namespace GestionCompte.Entity
{
    public class MenuItemListEntity : List<MenuItemEntity>
    {
        
        public MenuItemListEntity(List<MenuItemEntity> menuList)
        {
            this.AddRange(menuList);
        }

        public IEnumerable<MenuItemEntity> GetCategorizedMenu()
        {
            return this.Where(x => x.Category == MenuItemCategories.Layout);
        }
    }
}